package com.lanmao.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 商品三级分类
 * </p>
 *
 * @author lanmao
 * @since 2023-11-24
 */
@TableName("pms_category")
@Data
@ToString
@Schema( description = "商品三级分类")
public class Category implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "分类id")
    @TableId(value = "cat_id", type = IdType.AUTO)
    private Long catId;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父分类id")
    private Long parentCid;

    @Schema(description = "层级")
    private Integer catLevel;

    @Schema(description = "是否显示[0-不显示，1显示]")
    private Integer showStatus;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "图标地址")
    private String icon;

    @Schema(description = "计量单位")
    private String productUnit;

    @Schema(description = "商品数量")
    private Integer productCount;

}
